package rj.servlet.sy2;



import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.annotation.WebServlet;
import java.io.IOException;
import java.io.PrintWriter;

@WebServlet(name="ShowInfomation",urlPatterns = "/ShowInfomation")
public class ShowInfomation extends GenericServlet {
    //    private static final long serialVersionUID = 1L;
    public void service(ServletRequest request, ServletResponse response) throws ServletException, IOException {
        response.setContentType("text/html;charset=utf-8");
        PrintWriter out = response.getWriter();
        out.println("<html><body>");
        out.println("<title>个人信息</title>");
        out.println("<h1>个人信息</h1>");
        out.println("<p>姓名：小李</p >");
        out.println("<p>性别：女</p >");
        out.println("<p>年龄：21</p >");
        out.println("<p>专业：软件工程</p >");
        out.println("<p>班级：2班</p >");
        out.println("<p>学号：11223344</p >");

        out.println("</html></body>");
    }
}